import React from 'react';
import './font.js';
import './style.css';

interface IProps {
  type: string;
  className?: string;
  style?: React.CSSProperties;
}

const Icon: React.FC<IProps> = ({ type, className, style }) => {
  return (
    <svg className={'icon ' + className} style={style} aria-hidden="true">
      <use xlinkHref={'#icon-' + type}></use>
    </svg>
  );
};

export default Icon;
